// UserSessionRepository.java
package com.tzkyzj.tiremanager.repository;

import com.tzkyzj.tiremanager.entity.UserSession;
import org.springframework.data.jpa.repository.JpaRepository;
import java.util.Optional;

public interface UserSessionRepository extends JpaRepository<UserSession, Long> {
    Optional<UserSession> findByToken(String token);
    void deleteByToken(String token);
}